// 用户请求
import { request } from '@/utils/request'
// 登录请求
export function loginApi(loginFrom) {
  return request({
    url: '/authorizations',
    method: 'POST',
    data: loginFrom
  })
}

// 获取用户信息
export function getProfile() {
  return request({
    url: '/user/profile',
    method: 'GET',
  })
}